PDF4Java Reference Documentation
com.o2sol.pdf4java.document Package / PDFViewerPreferences Class / setPrintPageRange Method
The page numbers used to initialize the print dialogue box when the document is printed.
In This Topic
    setPrintPageRange Method
    In This Topic
    Sets the print page range.
    The array shall contain an even number of integers to be interpreted in pairs, with each pair specifying the first and last pages in a sub-range of pages to be printed.The first page of the PDF file shall be denoted by 1.
    Syntax
    public void setPrintPageRange( 
       int[] printPageRange
    )

    Parameters

    printPageRange
    The page numbers used to initialize the print dialogue box when the document is printed.
    Exceptions
    ExceptionDescription
    When printPageRange has an odd number of elements.
    See Also